<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%> 
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<style>
<!--
table     { font-size: 12px; font-family:"Verdana", "宋体", "Arial";
            border: 0px solid black; border-collapse: collapse; /*align: center;*/
            width:60%;
          }
td        { font-size: 12px; font-family:"Verdana", "宋体", "Arial";
            border: 1px solid black; /*background-color: null;*/
           
          }
//-->
</style>
<html> 
	<head>
		<title>display.jsp</title>
	</head>
	<body>
         所有记录：
		<table>
			<tr bgcolor="#CCCCCC">
			  <td>ID</td>
			  <td>姓名</td>
			  <td>编辑</td>
			  <td>删除</td>
			</tr>
			<c:forEach items="${requestScope.person}" var="info">
			   <tr>
			     <td><c:out value="${info.id}" /></td>
			     <td><c:out value="${info.name}" /></td>
			     <td><a href="<c:url value="/person.do?method=edit&id=${info.id}"/>">编辑</a></td>	
			     <td><a href="<c:url value="/person.do?method=delete&id=${info.id}"/>">删除</a></td>		   
			   </tr>
			</c:forEach>
		</table>
		<a href="input.jsp">添加</a>
	</body>
</html>
